package com.atguigu.order.orders.feign;


import com.atguigu.order.vo.MemberAddressVo;
import com.atguigu.order.vo.OrderItemVo;
import com.atguigu.order.vo.UmsMemberReceiveAddressEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient("gulimall-member")
public interface MemberFeign {
    //远程调用获取用户的地址信息
    @GetMapping("member/memberreceiveaddress/order/to/member/{id}")
    List<MemberAddressVo> orderToMember(@PathVariable("id") Long id);

    /**
     * 根据id查询
     */
    @GetMapping("member/memberreceiveaddress/order/to/members/{id}")
    UmsMemberReceiveAddressEntity orderToMemberById(@PathVariable("id") Long id);
}
